package com.dudsbury.gui;


public class MyCustomer {
		private String customerID;
		private String title;
		private String forename;
		private String surname;
		private String postcode;
		private String address1;
		private String address2;
		private String townOrCity;
		private String county;
		private String telephoneNo;
		private String email;
		private String infoReference;
		
		private static final int CUSTOMER_ID = 0;
		private static final int TITLE = 1;
		private static final int FORENAME = 2;
		private static final int SURNAME = 3;
		private static final int POSTCODE = 4;
		private static final int ADDRESS1 = 5;
		private static final int ADDRESS2 = 6;
		private static final int TOWN_OR_CITY = 7;
		private static final int COUNTY = 8;
		private static final int TELEPHONE_NO = 9;
		private static final int EMAIL = 10;
		private static final int INFO_REFERENCE = 11;
		
		public MyCustomer()
		{
			
		}
		
		public MyCustomer(String [] data)
		{
			this.customerID = data[CUSTOMER_ID];
			this.title = data[TITLE];
			this.forename = data[FORENAME];
			this.surname = data[SURNAME];
			this.postcode = data[POSTCODE];
			this.address1 = data[ADDRESS1];
			this.address2 = data[ADDRESS2];
			this.townOrCity = data[TOWN_OR_CITY];
			this.county = data[COUNTY];
			this.telephoneNo = data[TELEPHONE_NO];
			this.email = data[EMAIL];
			this.infoReference = data[INFO_REFERENCE];
				
		}

		public String getCustomerID() {
			return customerID;
		}

		public void setCustomerID(String customerID) {
			this.customerID = customerID;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getForename() {
			return forename;
		}

		public void setForename(String forename) {
			this.forename = forename;
		}

		public String getSurname() {
			return surname;
		}

		public void setSurname(String surname) {
			this.surname = surname;
		}

		public String getPostcode() {
			return postcode;
		}

		public void setPostcode(String postcode) {
			this.postcode = postcode;
		}

		public String getAddress1() {
			return address1;
		}

		public void setAddress1(String address1) {
			this.address1 = address1;
		}

		public String getAddress2() {
			return address2;
		}

		public void setAddress2(String address2) {
			this.address2 = address2;
		}

		public String getTownOrCity() {
			return townOrCity;
		}

		public void setTownOrCity(String townOrCity) {
			this.townOrCity = townOrCity;
		}

		public String getCounty() {
			return county;
		}

		public void setCounty(String county) {
			this.county = county;
		}

		public String getTelephoneNo() {
			return telephoneNo;
		}

		public void setTelephoneNo(String telephoneNo) {
			this.telephoneNo = telephoneNo;
		}

		public String getEmail() {
			return email;
		}

		public void setEmail(String email) {
			this.email = email;
		}

		public String getInfoReference() {
			return infoReference;
		}

		public void setInfoReference(String infoReference) {
			this.infoReference = infoReference;
		}
		
		
}
